<%@page import="org.jeecgframework.web.util.StaticValue" %>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/context/mytags.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <title>零件信息表</title>
    <t:base type="jquery,easyui,tools,DatePicker"></t:base>
    <script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
    <link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css"></link>
    <script type="text/javascript" src="plug-in/uploadify/jquery.uploadify-3.1.js"></script>
    <style type="text/css">
        .swfupload {
            left: 12px;
        }

        .uploadify {
            margin: 5px;
            margin-right: 20px;
        }

        #file_upload {
            float: right;
        }

        .imgDiv {
            width: 90px;
            height: 115px;
            display: inline-block;
            text-align: center;
            margin: 5px;
        }
    </style>
</head>
<body>

<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table"
             action="cbsPartInfoController.do?doUpdate" tiptype="3">

    <input id="id" name="id" type="hidden" value="${cbsPartInfoPage.id }">
    <input id="createName" name="createName" type="hidden" value="${cbsPartInfoPage.createName }">
    <input id="createBy" name="createBy" type="hidden" value="${cbsPartInfoPage.createBy }">
    <input id="createDate" name="createDate" type="hidden" value="${cbsPartInfoPage.createDate }">
    <input id="updateName" name="updateName" type="hidden" value="${cbsPartInfoPage.updateName }">
    <input id="updateBy" name="updateBy" type="hidden" value="${cbsPartInfoPage.updateBy }">
    <input id="updateDate" name="updateDate" type="hidden" value="${cbsPartInfoPage.updateDate }">
    <div class="subtitle">
        <p>零件信息</p>
        <table class="nobordertable noborder">
            <tr>
                <td class="al_r" width="20%"><label>零件号:</label></td>
                <td width="20%">${cbsPartInfoPage.partNo }</td>
                <td class="al_r" width="30%"><label>英文描述：</label></td>
                <td>${cbsPartInfoPage.englishDes }</td>
            </tr>
            <tr>
                <td class="al_r" width="20%"><label>中文描述:</label></td>
                <td width="20%">${cbsPartInfoPage.chineseDes }</td>
                <td class="al_r" width="30%"><label>销售单位：</label></td>
                <td>
                        ${cbsPartInfoPage.marketUnit }
                        <%-- <t:dictSelect field="marketUnit" typeGroupCode="<%=StaticValue.DIC_MARKET_UNIT %>" defaultVal="${cbsPartInfoPage.marketUnit }" /> --%>
                </td>
            </tr>
            <tr>
                <td class="al_r" width="20%"><label>微信推广名:</label></td>
                <td width="20%">${cbsPartInfoPage.wechatName }</td>
                <td class="al_r" width="30%"><label>所属商品分类：</label></td>
                <td>
                    <t:dictSelect field="commodity" type="span" typeGroupCode="<%=StaticValue.CLASSIFY %>"
                                  defaultVal="${cbsPartInfoPage.commodity }"/>
                        <%-- <t:dictSelect field="sort" typeGroupCode="<%=StaticValue.CLASSIFY %>" defaultVal="${cbsPartInfoPage.sort }"/> --%>
                </td>
            </tr>
            <tr>
                <td class="al_r" width="20%"><label>适用机型:</label></td>
                <td width="20%">${cbsPartInfoPage.type }</td>
                <td class="al_r" width="20%"><label>是否可售:</label></td>
                <td class="30%">
                    <t:dictSelect field="canSale" type="span" typeGroupCode="trueOfFlaseNum"
                                  defaultVal="${cbsPartInfoPage.canSale }"/>
                </td>
            </tr>
            <tr>
                <td class="al_r" width="20%"><label>是否微信可售:</label></td>
                <td class="30%">
                    <t:dictSelect field="canWxSale" type="span" typeGroupCode="trueOfFlaseNum"
                                  defaultVal="${cbsPartInfoPage.canWxSale }"/>
                </td>
                <td class="al_r" width="20%"><label></label></td>
                <td width="20%"></td>
            </tr>
            <tr>
                <td class="al_r" width="20%"><label>详细说明:</label></td>
                <td class="90%" colspan="3">
                    <textarea style="width:90%;border:0" class="inputxt" rows="3" id="details" name="details"
                              readonly="readonly">${cbsPartInfoPage.details }</textarea>
                </td>
            </tr>
            <c:if test="${not empty cbsPartInfoPage.partImgList}">
                <tr>
                    <td class="al_r" width="20%">图片：</td>
                    <td colspan="3" rowspan="2" id="imgTd"><c:forEach items="${cbsPartInfoPage.partImgList }" var="img">
                        <div class="imgDiv"><input type="hidden" value="${img.allPath }" name="filePathStr"> <input
                                type="hidden" value="${img.filename }" name="fileNameStr"> <input type="hidden"
                                                                                                  value="${img.filerealname }"
                                                                                                  name="fileRealNameStr">
                            <img src="cbsPartInfoController.do?downLoadFile&filePath=${img.allPath }" height="90"
                                 width="90"></div>
                    </c:forEach></td>
                </tr>
            </c:if>

        </table>

    </div>
    <div class="subtitle">
        <table align="center" style="margin-top: 20px; line-height: 50px; width: 80%;" cellpadding="0" cellspacing="1"
               class="formtable">
            <tr>
                <td width="20%" align="center">终端价</td>
                <td width="30%" align="center" style="background-color: #FFFFFF;">
                    <input type="text" name="terminalPrice" value="${cbsPartInfoPage.terminalPrice }" dataType="nPn"
                           style="width:200px;" readonly="readonly"/>
                </td>
            </tr>
            <tr>
                <td width="20%" align="center">中影优惠价</td>
                <td width="30%" align="center" style="background-color: #FFFFFF;">
                    <input type="text" name="cfgcPrice" value="${cbsPartInfoPage.cfgcPrice }" dataType="nPn"
                           style="width:200px;" readonly="readonly"/>
                </td>
            </tr>
            <tr>
                <td width="20%" align="center">横店优惠价</td>
                <td width="30%" align="center" style="background-color: #FFFFFF;">
                    <input type="text" name="hdPrice" value="${cbsPartInfoPage.hdPrice }" dataType="nPn"
                           style="width:200px;" readonly="readonly"/>
                </td>
            </tr>
            <c:if test="${cbsPartInfoPage.commodity == 'consumable'}">
                <tr>
                    <td width="20%" align="center">院线价</td>
                    <td width="30%" align="center" style="background-color: #FFFFFF;">
                        <input type="text" name="cinemaPrice" value="${cbsPartInfoPage.cinemaPrice }" dataType="nPn"
                               style="width:200px;" readonly="readonly"/>
                    </td>
                </tr>
            </c:if>
            <tr>
                <td width="20%" align="center">微信优惠价</td>
                <td width="30%" align="center" style="background-color: #FFFFFF;">
                    <input type="text" name="wechatPrice" value="${cbsPartInfoPage.wechatPrice }" dataType="nPn"
                           style="width:200px;" readonly="readonly"/>
                </td>
            </tr>
        </table>
    </div>
</t:formvalid>
</body>